package com.cc.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.cc.infrastructure.db.AmountDb;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("前端传递参数")
public class AmountDto {


  /**
   *
   **/
  @ApiModelProperty("")
  private String id;
  /**
   *
   **/
  @ApiModelProperty("")
  private String supplyId;
  /**
   *
   **/
  @ApiModelProperty("")
  private String moneyType;
  /**
   *
   **/
  @ApiModelProperty("")
  private String amount;

  public static AmountDb convertAmountDbByAmountDto(AmountDto amountDto) {
    AmountDb amountdb = new AmountDb();
    amountdb.setId(amountDto.getId());
    amountdb.setSupplyId(amountDto.getSupplyId());
    amountdb.setMoneyType(amountDto.getMoneyType());
    amountdb.setAmount(amountDto.getAmount());
    return amountdb;
  }
}